﻿<Application x:Class="AirlinePilotAcademy_WPF.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        <!--Brushes-->
        <SolidColorBrush x:Key="SolidBorderBrush" Color="#FF87B42C" />
        <!--MENU STYLE-->
        <ControlTemplate x:Key="{x:Static MenuItem.TopLevelHeaderTemplateKey}" TargetType="MenuItem" >
            <Border Name="Border">
                <Grid>
                    <ContentPresenter RecognizesAccessKey="True" ContentSource="Header" Margin="6,3,6,3" />
                    <Popup 
        Name="Popup"
        Placement="Bottom"
        IsOpen="{TemplateBinding IsSubmenuOpen}"
        AllowsTransparency="False" 
        Focusable="False"
        PopupAnimation="Fade">
                        <Border 
          Name="SubmenuBorder"
          SnapsToDevicePixels="True"
          Background="{StaticResource SolidBorderBrush}"
          BorderBrush="{StaticResource SolidBorderBrush}"
          BorderThickness="1" >
                            <StackPanel  
            IsItemsHost="True" 
            KeyboardNavigation.DirectionalNavigation="Cycle" />
                        </Border>
                        </Popup>
                </Grid>
            </Border>
        </ControlTemplate>
        <!--END MENU STYLE-->
        
        <!--BUTTON-->
        <Style TargetType="Button">
            <Setter Property="Background" Value="#87B42C" />
            <Setter Property="Foreground" Value="Black" />
            <Setter Property="BorderThickness" Value="1" />
            <Setter Property="FontSize" Value="14" />
            <Setter Property="FontWeight" Value="Bold" />
        </Style>
        <Style TargetType="Window" >
            
        </Style>
    </Application.Resources>
</Application>
